package main

import (
	"gorm-gin-master/Initialize"
	"gorm-gin-master/Global"
	"fmt"
)

var err error

func main() {
	//1. 初始化配置
	Initialize.InitConfig()
	
	//2. 初始化routers
	Router := Initialize.InitRouters()

	//3. 初始化数据库
	Initialize.InitMysqlDB()
	
	Router.Run(fmt.Sprintf(":%d", Global.Settings.Port))
}
